<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		 onShare() {
		      uni.share({
		        provider: 'weixin',
		        type: 5,
		        imageUrl: '/static/share.png',
		        success: res => {
		          console.log('分享成功', res);
		        },
		        fail: err => {
		          console.error('分享失败', err);
		        }
		      });
		    }
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
		@import "uview-ui/index.scss";
</style>
